package org.jeecg.modules.demo.socost.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: so_cost
 * @Author: jeecg-boot
 * @Date:   2021-12-08
 * @Version: V1.0
 */
@Data
@TableName("so_cost")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="so_cost对象", description="so_cost")
public class SoCost implements Serializable {
    private static final long serialVersionUID = 1L;

	/**业务类型*/
	@Excel(name = "业务类型", width = 15)
    @ApiModelProperty(value = "业务类型")
    @Dict(dicCode = "Tos")
    private java.lang.Integer businesstype;
	/**票据类型*/
	@Excel(name = "票据类型", width = 15)
    @ApiModelProperty(value = "票据类型")
    @Dict(dicCode = "Invoice_Type")
    private java.lang.Integer billtype;
	/**往来单位*/
	@Excel(name = "往来单位", width = 15)
    @ApiModelProperty(value = "往来单位")
    private java.lang.String btype;
	/**业务员*/
	@Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private java.lang.String salesman;
	/**分摊状态*/
	@Excel(name = "分摊状态", width = 15)
    @ApiModelProperty(value = "分摊状态")
    private java.lang.Integer apportionstate;
	/**含税金额*/
	@Excel(name = "含税金额", width = 15)
    @ApiModelProperty(value = "含税金额")
    private  java.math.BigDecimal taxamount;
	/**费用名称*/
	@Excel(name = "费用名称", width = 15)
    @ApiModelProperty(value = "费用名称")
    @Dict(dicCode = "cost_name")
    private java.lang.Integer namecosts;
	/**采购结算单仓库编码*/
	@Excel(name = "采购结算单仓库编码", width = 15)
    @ApiModelProperty(value = "采购结算单仓库编码")
    private java.lang.String puWhNum;
	/**采购结算单入库编码*/
	@Excel(name = "采购结算单入库编码", width = 15)
    @ApiModelProperty(value = "采购结算单入库编码")
    private java.lang.String puWoNo;
	/**采购结算单编号*/
	@Excel(name = "采购结算单编号", width = 15)
    @ApiModelProperty(value = "采购结算单编号")
    private java.lang.String pusNo;
	/**入库单仓库*/
	@Excel(name = "入库单仓库", width = 15)
    @ApiModelProperty(value = "入库单仓库")
    private java.lang.String warWhNum;
	/**费用单号*/
	@Excel(name = "费用单号", width = 15)
    @ApiModelProperty(value = "费用单号")
    private java.lang.String socCostNo;
	/**入库单编号*/
	@Excel(name = "入库单编号", width = 15)
    @ApiModelProperty(value = "入库单编号")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private java.lang.String woNo;
	/**成本编号*/
	@Excel(name = "成本编号", width = 15)
    @ApiModelProperty(value = "成本编号")
    private java.lang.Integer costNo;
	/**计价金额*/
	@Excel(name = "计价金额", width = 15)
    @ApiModelProperty(value = "计价金额")
    private java.math.BigDecimal psAmount;
	/**税率*/
	@Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    @Dict(dicCode = "tax_rate")
    private java.lang.Integer psTaxrat;
	/**不含税价*/
	@Excel(name = "不含税价", width = 15)
    @ApiModelProperty(value = "不含税价")
    private java.math.BigDecimal psNotax;
	/**税额*/
	@Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private java.math.BigDecimal psTax;
	/**结算状态*/
	@Excel(name = "结算状态", width = 15)
    @ApiModelProperty(value = "结算状态")
    private java.lang.Integer socSetStauts;
	/**创建日期*/
	@Excel(name = "创建日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date psDate;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private java.lang.String id;
	/**仓库编码*/
	@Excel(name = "仓库编码", width = 15)
    @ApiModelProperty(value = "仓库编码")
    private java.lang.String whNum;
	/**产品入库单*/
	@Excel(name = "产品入库单", width = 15)
    @ApiModelProperty(value = "产品入库单")
    private java.lang.String proWoNo;
	/**产品批号*/
	@Excel(name = "产品批号", width = 15)
    @ApiModelProperty(value = "产品批号")
    private java.lang.String prdBn;
	@Dict(dicCode = "checkState")
	private java.lang.Integer shenhe;

	private java.lang.Integer shanchu;

    //部门
    @Dict(dictTable = "SYS_DEPART",dicCode = "ID",dicText = "DEPART_NAME")
    private String department;
    //审核人
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private String checkmen;
    //项目
    @Dict(dictTable = "PJ_PROJECT",dicCode = "ID",dicText = "PJ_NAME")
    private String project;


    private String puiNo;

    private String remark;
    private String fj;

    /**
     * 租户ID
     */
    private Integer tenantId;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date shTime;
    private java.math.BigDecimal syje;

    /**
     * 创建人
     */
    private String createBy;


    private String sysOrgCode;
}
